﻿@model CodeCamp.Models.ResetAcctViewModel
@{
    @* ViewBag.RegistrationUrl set in code - SetSharedViewBagProperties *@
    ViewBag.EventName = "";
    ViewBag.Title = "";
    if ((@Model != null) && (@Model.EventDisplayName != null))
    {
        ViewBag.Title = (@Model.EventDisplayName + " | Reset Account");
        ViewBag.EventName = @Model.EventDisplayName;
    }
    else
    {
        ViewBag.Title = "Code Camp | Reset Account";
        ViewBag.EventName = "Code Camp";
    }
}

<h2>Reset Account</h2>

@if (!string.IsNullOrWhiteSpace(ViewBag.AcctResetResultMsg))
{
    <p class="reset-result-message">@Html.Raw(@Html.Encode(@ViewBag.AcctResetResultMsg).Replace(Environment.NewLine, "<br/>"))</p>
}
@if (Model.ResetAcctModel != null)
{
    @Html.Partial("ResetAcctPartial", @Model.ResetAcctModel)
}
